package com.example.demo.service;

import com.example.demo.entity.DTO.WorkersAndBookedTimeDTO;
import com.example.demo.entity.WorkersAndBookedTime;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Date;
import java.util.List;

import java.util.List;

/**
 * <p>
 * 员工预约表 服务类
 * </p>
 *
 * @author Mr.Xiayh
 * @since 2024-05-31
 */
public interface IWorkersAndBookedTimeService extends IService<WorkersAndBookedTime> {
   List<WorkersAndBookedTime> workersAndBookedTimeList();
    /**
     * 查询所有预约
     * @return
     */
    public List<WorkersAndBookedTimeDTO> getByCriteria(WorkersAndBookedTime workersAndBookedTime);

    /**
     * 预约护理师
     */
    boolean bookedWorker(int wbt_id);

    /**
     * 取消预约护理师
     */
    boolean cancelBooked(int wbt_id);

    WorkersAndBookedTime findBookedTime(int wbtId);
}
